package kr.co.doriclassic.pro14;

import javax.swing.JPanel;
import javax.swing.JTextField;
import java.awt.GridLayout;
import javax.swing.JLabel;

public class IntPanelInput extends JPanel {
	private JTextField tfInput_account;
	private JLabel label1;
	private JLabel label2;
	private JTextField tfInput_rate;
	
	public void setTfInput_account(String text) {
		tfInput_account.setText(text);
	}
	
	public void setTfInput_rate(String text) {
		tfInput_rate.setText(text);
	}
	
	public String getTfInput_account() {
		return tfInput_account.getText();
	}

	public String getTfInput_rate() {
		return tfInput_rate.getText();
	}
	
	public IntPanelInput() {

		initialize();
	}
	
	private void initialize() {
		setLayout(new GridLayout(2, 1, 0, 0));
		
		label1 = new JLabel("원금을 입력하시오");
		add(label1);
		
		tfInput_account = new JTextField();
		add(tfInput_account);
		tfInput_account.setColumns(5);
		
		label2 = new JLabel("이율을 입력하시오");
		add(label2);
		
		tfInput_rate = new JTextField();
		tfInput_rate.setColumns(5);
		add(tfInput_rate);
	}
}
